Application

Undocumented in source.

Members

Functions

DELETE
Application DELETE(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
GET
Application GET(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
HEAD
Application HEAD(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
OPTIONS
Application OPTIONS(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
PATCH
Application PATCH(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
POST
Application POST(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
PUT
Application PUT(string path, HandleFunction handle)
Undocumented in source. Be warned that the author may not have intended to support it.
addRoute
auto addRoute(string method, string path, HandleFunction handle, string group)

Add a Router rule

binded
Address binded()
Undocumented in source. Be warned that the author may not have intended to support it.
enableLocale
Application enableLocale(string resPath, string defaultLocale)
Undocumented in source. Be warned that the author may not have intended to support it.
getAccessManager
AccessManager getAccessManager()
Undocumented in source. Be warned that the author may not have intended to support it.
getCache
UCache getCache()
Undocumented in source. Be warned that the author may not have intended to support it.
getCacheManger
CacheManger getCacheManger()
Undocumented in source. Be warned that the author may not have intended to support it.
getSessionStorage
SessionStorage getSessionStorage()
Undocumented in source. Be warned that the author may not have intended to support it.
run
void run()

Start the HTTPServer server , and block current thread.

setConfig
void setConfig(AppConfig config)
Undocumented in source. Be warned that the author may not have intended to support it.
setCreateBuffer
void setCreateBuffer(CreatorBuffer cbuffer)
Undocumented in source. Be warned that the author may not have intended to support it.
setWebSocketFactory
void setWebSocketFactory(WebSocketFactory webfactory)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start()
Undocumented in source. Be warned that the author may not have intended to support it.
startRpcClient
void startRpcClient(string ip, ushort port, int threadNum)
Undocumented in source. Be warned that the author may not have intended to support it.
startRpcService
void startRpcService()
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop()

Stop the server.

Properties

appConfig
AppConfig appConfig [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getInstance
Application getInstance [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
loopGroup
loopGroup [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mainLoop
mainLoop [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
router
router [@property getter]

get the router.

server
server [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
taskPool
TaskPool taskPool [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta